﻿using System;
using System.ComponentModel;
using System.Data;
using System.Windows;
using System.Windows.Input;
using System.Windows.Controls;
using ReflectionStudio.Core.Events;
namespace WPFExcelReport
{
    public partial class UIAMV : ViewBase
    {
        public VAMVALUE TMV
        {
            get
            {
                return (VAMVALUE)MV;
            } 
        } 
 
        public UIAMV()
        { 
             
        }

        public override void Window_Loaded(object sender, RoutedEventArgs e)
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            if (IsLoaded)
                return;
            base.Window_Loaded(sender, e);
        }
       
        public override void vwMaster_CurrentChanged(object sender, EventArgs e)
        {
            base.vwMaster_CurrentChanged(sender, e); 
            if (dwMaster == null)
            {
                KEY = "";
            }
            else
            {
                KEY = TMV.AMVNRKRS+TMV.AMVLFDNR + TMV.AMVPOS + TMV.AMVDATE + TMV.AMVTIME+TMV.AMVWERTNR;
            } 
        }
        
    }
}
